All Functions of Week 1

chisq.test

{stats}

Chi-Squared test (e.g. for cross-tabulations)

mutate

{dplyr}

Modify/create a column in a data frame

ordered

{dplyr}

Create an ordered factor

read_dta

{haven}

Read a .dta file (Stata data)

summary

{base}

Obtain summary statistics or detailed regression output

c

{base}

Combine values/vectors into a vector

ifelse

{base}

Return a or b depending on the value of test

cut

{base}

Convert Numeric to Factor

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

with

{base}

evaluate expression in the context of a data frame

setwd

{base}

Set Working Directory

library

{base}

Load an R package

The end!